/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author odong
 */
public enum Gender {
    MALE,FEMALE,ANY;

    public static Gender fromSingleChar(char ch) {
        if(ch == 'F' || ch == 'f') {
            return Gender.FEMALE;
        } else if(ch == 'M' || ch == 'm') {
            return Gender.MALE;
        } else {
            return Gender.ANY;
        }
    }
}
